﻿using System.Windows;
using System.Windows.Controls;
using Microsoft.Phone.Controls;

namespace Coding4Fun.FakeCall.Controls
{
	public partial class BackGround : UserControl
	{
		public BackGround()
		{
			InitializeComponent();

			TiltEffect.SetIsTiltEnabled(button1, true);
		}

		private void button1_Click(object sender, RoutedEventArgs e)
		{
			InvokeRestartApp(e);
		}

		public event RoutedEventHandler RestartClick;

		private void InvokeRestartApp(RoutedEventArgs e)
		{
			var handler = RestartClick;

			if (handler != null)
				handler(this, e);
		}

	}
}
